<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<div class="body">
	<div style="width:100%;height:40px;margin-left:auto;margin-right:auto;margin-top:5px;" class="word_blue">
		&nbsp;&nbsp;当前位置：修改个人信息 &gt; 密码修改 &gt;&gt;&gt;
	</div>
<!-- 如果suceed为NULL说明密码还没有提交就进行下面代码 -->
<s:if test="flag == null">
<!-- 填写密码 -->
		<div style="width:100%;height:60px;margin-left:auto;margin-right:auto;margin-top:5px;">
			<form action="management/<%=session.getAttribute("status") %>-Info-modifySelfPasswd" method="post" name="passwdform">  
				<div class="informationdiv">
				
					<div style="margin-top:20px;">&nbsp;&nbsp;原密码：
						<input type="password" name="oldPasswd" id="oldpasswd" size="20" value="" onfocus="getfocus(icon_1,label_1,'请输入6-20位字符');" onblur="ischarsizeright(oldpasswd,6,20,icon_1,label_1,'请输入6-20位字符',2);">
						<span>
							<em class="write" id="icon_1"></em>&nbsp;
							<label id="label_1" >请输入6-20位字符</label>
						</span>
					</div>
					
					<div style="margin-top:20px;">&nbsp;&nbsp;新密码：
						<input type="password" name="newPasswd" id="newpasswd" size="20" value="" onfocus="getfocus(icon_2,label_2,'请输入6-20位字符');" onblur="ischarsizeright(newpasswd,6,20,icon_2,label_2,'请输入6-20位字符',2);">
						<span>
							<em class="write" id="icon_2"></em>&nbsp;
							<label id="label_2" >请输入6-20位字符</label>
						</span>
					</div>
					
					<div style="margin-top:20px;">确认密码：
						<input type="password" name="ensurepasswd" id="ensurepasswd" size="20" value="" onfocus="getfocus(icon_3,label_3,'重新输入密码');" onblur="checkpsswd(newPasswd,ensurepasswd,icon_3,label_3,'密码输入错误');">
						<span>
							<em class="write" id="icon_3"></em>&nbsp;
							<label id="label_3" >重新输入密码</label>
						</span>
					</div>
					
					<div style="margin-top:20px;">
						<input type="submit" name="Submit" class="btn_grey" value="修改" onclick="return check(3)"> &nbsp;
						<input type="reset" name="reset" class="btn_grey" value="重置">&nbsp;
                    </div>
				</div>
			</form>
		</div>
		</s:if>
<!-- 如果suceed为0表示没修改成功，执行下面代码 -->
	<s:debug/>
	<s:if test="flag == 1 || flag == 2">
	<table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
    		<tr>
    			<td height="36" align="center">修改失败！</td>
    		</tr>
    	</table>
<!-- 如果suceed为1表示设置失败，执行下面代码 -->			
		</s:if>
		<s:if test="flag ==3">
		<table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
        	<tr>
             	<td height="36" align="center">修改成功！</td>
        	</tr>
    	</table>
    	</s:if>
</div>